package models

type ProjectMembersModel struct {
	ProjectId  int    `gorm:"column:project_id"`
	MemberId   int    `gorm:"column:member_id"`
	MemberName string `gorm:"column:member_name"`
	MemberRole string `gorm:"column:member_role"`
	Webide     string `gorm:"column:webide"`
	CreateTime string `gorm:"column:create_time"`
}

func NewProjectMembersModel(projectId int, memberName, memberRole, webide, createTime string) *ProjectMembersModel {
	return &ProjectMembersModel{
		ProjectId:  projectId,
		MemberName: memberName,
		MemberRole: memberRole,
		Webide:     webide,
		CreateTime: createTime,
	}
}

func (p *ProjectMembersModel) TableName() string {
	return "project_members"
}
